<%-- 
    Document   : thongke
    Created on : Nov 23, 2011, 8:51:49 PM
    Author     : kydrenw
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div class="box-head">Thống kê</div>
<div class="toolbar">
    <input id="btnSL" type="button" value="Sản phẩm bán chạy" class="btnTool tool-active" onclick="showSL()"/>
    <input id="btnDT" type="button" value="Doanh thu" class="btnTool tool-inactive" onclick="showDT()"/>    
</div>
<div id="tbTKSL">
    <table  width="100%">
        <tr>
            <td class="tbhead">Mã sản phẩm</td>
            <td class="tbhead">Tên sản phẩm</td>
            <td class="tbhead">Số lượng bán</td>
        </tr>
        <c:forEach var="item" items="${dsSL}">
            <tr>
                <td class="tbcontent">${item[0]}</td>
                <td class="tbcontent">${item[1]}</td>
                <td class="tbcontent">${item[2]}</td>            
            </tr>
        </c:forEach>
    </table>
</div>
<div id="tbTKDT" class="hide">
    <table  width="100%">
        <tr>
            <td class="tbhead">Mã sản phẩm</td>
            <td class="tbhead">Tên sản phẩm</td>
            <td class="tbhead">Doanh thu</td>
        </tr>
        <c:forEach var="item" items="${dsDT}">
            <tr>
                <td class="tbcontent">${item[0]}</td>
                <td class="tbcontent">${item[1]}</td>
                <td class="tbcontent">${item[2]}</td>               
            </tr>
        </c:forEach>
    </table>
</div>
<div id="imgSL" class="chart"><img src="graphSL.htm" alt="Graph"/></div>
<div id="imgDT" class="chart hide"><img src="graphDT.htm" alt="Graph"/></div>

